package com.remenote.remenoteback.entity.doo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.CreatedBy;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedBy;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;


import jakarta.persistence.*;

import java.io.Serializable;
import java.util.Date;

/**
 * 卡片;undefined
 * @author : http://www.chiner.pro
 * @date : 2024-3-16
 */
@Getter
@Setter
@Entity
@Accessors(chain = true)
@Table(name="CARD")
@EntityListeners(AuditingEntityListener.class)
public class CardDo implements Serializable,Cloneable{
    private String tenantId ;
    private Integer revision ;
    @CreatedBy
    private String createdBy ;
    @CreatedDate
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime ;
    @LastModifiedBy
    private String updatedBy ;
    @LastModifiedDate
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime ;
    @Id
    @GeneratedValue
    private Integer id ;
    private String username ;
    private String deckName ;
    private Integer deckId;
    private String front ;
    private String back ;
    private Integer MemoryCount;
}